<link rel="stylesheet" type="text/css" href="<?php echo url::base(FALSE) ?>css/content.css">

<table>
    <tr><td id="dblokasi">Database Pembukuan</td></tr>
    <tr>
        <td>
            <form action="<?php echo url::site() . 'pembukuan' ?>" method="post" >
                <select name="show_by">
                    <option value="harian">harian</option>
                    <option value="bulanan">bulanan</option>
                </select>
                <input type="submit" value="Submit" />
            </form>
        </td>
    </tr>
    <tr>
        <td width="100%" class="content">
            Pendapatan : 
            <table border="1" align="center" width="100%" class="tabcontent">
                <tr>
                    <td>Tanggal</td>
                    <td>Keterangan</td>
                    <td>Nominal</td>
                </tr>
                <?php if (isset($arrpendapatan)): ?>
                <?php foreach ($arrpendapatan as $row) : ?>
                        <tr>
                            <td><?php echo $row->tanggal ?></td>
                            <td><?php echo $row->keterangan ?></td>
                            <td><?php echo $row->nominal ?></td>
                        </tr>
                <?php endforeach ?>
                <?php endif; ?>
                        <tr><td colspan="2">Total : </td><td><?php echo $totalpendapatan ?></td></tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td width="100%" class="content">
                    Pengeluaran :
                    <table border="1" align="center" width="100%" class="tabcontent">
                        <tr>
                            <td>Tanggal</td>
                            <td>Keterangan</td>
                            <td>Nominal</td>
                        </tr>
                <?php if (isset($arrpengeluaran)): ?>
                <?php foreach ($arrpengeluaran as $row) : ?>
                                <tr>
                                    <td><?php echo $row->tanggal ?></td>
                                    <td><?php echo $row->keterangan ?></td>
                                    <td><?php echo $row->nominal ?></td>
                                </tr>
                <?php endforeach ?>
                <?php endif; ?>
                                <tr><td colspan="2">Total : </td><td><?php echo $totalpengeluaran ?></td></tr>
            </table>
        </td>
    </tr>
</table>